package com.lframework.starter.web.inner.dto.order;

import com.lframework.starter.web.core.dto.BaseDto;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
public class ApprovePassOrderDto implements BaseDto, Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 业务单据ID
     */
    private String id;

    /**
     * 单据总金额
     */
    private BigDecimal totalAmount;

    /**
     * 审核时间
     */
    private LocalDateTime approveTime = LocalDateTime.now();

    /**
     * 单据类型
     */
    private OrderType orderType;

    public enum OrderType {
        PURCHASE_ORDER, PURCHASE_RETURN, SALE_ORDER, SALE_RETURN, RETAIL_OUT_SHEET, RETAIL_RETURN
    }
}
